import request from '@/utils/request'

// 查询DataRoom评论列表
export function listDdComment(query) {
  return request({
    url: '/data/ddComment/list',
    method: 'get',
    params: query
  })
}

// 根据ddId获取所有评论
export function getCommentList(query) {
  return request({
    url: '/data/ddComment/getCommentList',
    method: 'get',
    params: query
  })
}

// 查询DataRoom评论详细
export function getDdComment(id) {
  return request({
    url: '/data/ddComment/' + id,
    method: 'get'
  })
}

// 保存DataRoom评论
export function saveDdComment(data) {
  return request({
    url: '/data/ddComment/save',
    method: 'post',
    data: data
  })
}

// 删除DataRoom评论
export function delDdComment(id) {
  return request({
    url: '/data/ddComment/' + id,
    method: 'delete'
  })
}

// 导出DataRoom评论
export function exportDdComment(query) {
  return request({
    url: '/data/ddComment/export',
    method: 'get',
    params: query
  })
}
